// 节点信息有：nodeType nodeValue nodeName
let a = document.querySelector('.box>ul>li>a')
let childs = a.childNodes
for (let i = 0; i < childs.length; i++) {
  let item = childs[i]
  console.log(item.nodeName, item.nodeType, item.nodeValue)
}

// 获得a的属性节点集合
let attrs = a.attributes
let arr = Array.from(attrs)
for (let item of arr) {
  console.log(item.nodeName, item.nodeType, item.nodeValue)
}
